
/*!
\copyright  Copyright (c) 2020 Qualcomm Technologies International, Ltd.\n
            All Rights Reserved.\n
            Qualcomm Technologies International, Ltd. Confidential and Proprietary.
\file
\brief      Bitmap definitions.
*/

#ifndef BITMAP_H_
#define BITMAP_H_

/*-----------------------------------------------------------------------------
------------------ INCLUDES ---------------------------------------------------
-----------------------------------------------------------------------------*/

/*-----------------------------------------------------------------------------
------------------ TYPE DEFINITIONS -------------------------------------------
-----------------------------------------------------------------------------*/

#define BITMAP_GET(x, field, data) \
    (((data) & x##_MASK_##field) >> x##_BIT_##field)
#define BITMAP_SET(x, field, value) \
    (((value) << x##_BIT_##field) & x##_MASK_##field)

/*-----------------------------------------------------------------------------
------------------ VARIABLES --------------------------------------------------
-----------------------------------------------------------------------------*/

/*-----------------------------------------------------------------------------
------------------ PROTOTYPES -------------------------------------------------
-----------------------------------------------------------------------------*/

#endif /* BITMAP_H_ */
